<div class="row">
    <div class="col-xs-12">
        <div class="panel panel-midnightblue">
            <div class="panel-body">
                <form action="" class="form-horizontal row-border"  data-validate="parsley" id="validate-form">
                	<div class="row">
                		 <div class="form-group">
                    		<label class="col-sm-3 control-label" >选择会员:</label>
                    		<div class="col-sm-6">
                    			<select name="member_id" class="js-data-example-ajax"  style="width: 100%;">
								</select>	
                    		</div>
                   		 </div>
                   		 <div class="form-group">
                   		 	<label class="col-sm-3 control-label">选择课程</label>
                   		 	<div class="col-sm-6">
                   		 		<select class="form-control" name="course_id" id="course_id">
                   		 				<option value="0" data-single-price="0">请选择课程</option>
                   		 			{foreach name="courses" item="v"}
                   		 				<option data-single-price="{$v.price}" value="{$v.id}">{$v.name} - (￥{$v.price})</option>
                   		 			{/foreach}
                   		 		</select>
                   		 	</div>
                   		 </div>
                   		<div class="form-group">
                   		 	<label class="col-sm-3 control-label">课程数量</label>
                   		 	<div class="col-sm-6">
                   		 		<input type="text" id="course_count" value="1"   data-min="1"  data-max="100"  required  name="course_count"  class="form-control">
                   		 	</div>
                   		 </div>
                   		 
                   		 <div class="form-group">
                    		<label class="col-sm-3 control-label" >订单金额:</label>
                    		<div class="col-sm-6">
                    			<input type="text"   placeholder="订单金额"   required="required" value="0.0"  name="price" data-type = "money" class="form-control" id="price" />
                    		</div>
                   		</div>
                   		 <div class="form-group">
                   		 	<label class="col-sm-3 control-label">选择pt</label>
                   		 	<div class="col-sm-6">
                   		 		<select class="form-control" name="pt_id" id="pt_id">
                   		 			{foreach name="pts" item="v"}
                   		 				<option value="{$v.id}">{$v.name}</option>
                   		 			{/foreach}
                   		 			
                   		 		</select>
                   		 	</div>
                   		 </div>
    					<div class="form-group">
                   		 	<label class="col-sm-3 control-label">有效期开始</label>
                   		 	<div class="col-sm-6">
                   		 		<input type="text"  id="start-date"  required name="start_date" value="<?php echo date('Y-m-d') ?>"   class="form-control datepicker">
                   		 	</div>
                   		 </div>
                   		 
                   		<div class="form-group">
                   		 	<label class="col-sm-3 control-label">有效期结束</label>
                   		 	<div class="col-sm-6">
                   		 		<input type="text"  id="end-date" name="end_date"  required data-bigto="#start-date" value="<?php echo date('Y-m-d',strtotime('+1 YEAR')) ?>"   class="form-control datepicker">
                   		 	</div>
                   		</div>
                   		 
                   		<div class="form-group">
                   		  	<label class="col-sm-3 control-label" >备注:</label>
                    		<div class="col-sm-6">
                    			<textarea class="form-control" name="descs"></textarea>
                    		</div>
                   		</div>
                	</div>
                	<input type="hidden"  value="" id="course_name" name="course_name"/>
                </form>
            </div>
            <div class="panel-footer">
                <div class="row">
                    <div class="col-sm-6 col-sm-offset-3">
                        <div class="btn-toolbar">
                            <button class="btn-primary btn" id="form-submit">提交</button>
                            <button class="btn-default btn" data-dismiss="modal">关闭</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script type='text/javascript' src='{$Think.GYM_VIEW_JS}gym_pt_order/add.js'></script>